Skip to content

Conversation

@snazy
Copy link
Member

@snazy snazy commented Nov 13, 2025

Instead of suppressing the deprecations, this change updates the code a little bit to remove the mocks (except to create a non-nullable parameter).

Instead of suppressing the deprecations, this change updates the code a little bit to remove the mocks (except to create a non-nullable parameter).
@snazy
Copy link
Member Author

snazy commented Nov 13, 2025

@sungwy mind taking a look?

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Nov 13, 2025
}
}

<T> T httpClientExecute(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<T> T httpClientExecute(
@VisibleForTesting
<T> T httpClientExecute(

It looks like we are following the convention of marking it as being visible for testing, if that's our intent

@VisibleForTesting
StsClientsPool(
int maxSize,
Function<StsDestination, StsClient> clientBuilder,
Optional<MeterRegistry> meterRegistry) {
this.clientBuilder = clientBuilder;
this.clients =
Caffeine.newBuilder()
.maximumSize(maxSize)
.recordStats(() -> statsCounter(meterRegistry, maxSize))
.build();
}

What are your thoughts on adding it here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants